// "Copyright [2021] <Copyright Shengkai Lin>"

#ifndef PROTOCOLS_COMMON_CONNECTION_DETECTER_H_
#define PROTOCOLS_COMMON_CONNECTION_DETECTER_H_

#include <vector>
#include <queue>
#include "cluster/basic/ai_sim.h"
// #include "cluster/protocols/roce/RoceAdapter.h"

namespace ai_sim {
class OpticalTransceiver : public omnetpp::cSimpleModule {
  private:
    int my_index;
    int my_global_index;
    bool is_active;

  protected:
    void initialize() override;
    void handleMessage(omnetpp::cMessage *msg) override;

  private:
    void NotifyPortTempDown();
    void NotifyPortUp();
};

}  // namespace ai_sim

#endif  // PROTOCOLS_COMMON_CONNECTION_DETECTER_H_
